require "scripts.少年光头.UiHelper.UiHelper"

--物品栏tip
UiHelper.itemtip("物品栏"):InventoryItemTipOpen()

--鼠标指定物品TIP
UiHelper.itemtip("鼠标"):MouseItemTipOpen()


UiHelper.unittip():MouseUnintOpen()


local tim= htime.setTimeout(5,function (curTimer)

end)
UiHelper.TimeTip("计时器：",tim)
local tim2= htime.setTimeout(10,function (curTimer)

end)
UiHelper.TimeTip("计时器2：",tim2)
local tim3= htime.setTimeout(20,function (curTimer)

end)
UiHelper.TimeTip("计时器3：",tim3)


UiHelper.label():dfpointp(0,0,hdzui.origin.game(),FRAME_ALIGN_CENTER,FRAME_ALIGN_CENTER)
UiHelper.button():dfpointp(0.1,0,hdzui.origin.game(),FRAME_ALIGN_CENTER,FRAME_ALIGN_CENTER):dfsize(0.1,0.1):BGsetTexture("UI\\Widgets\\ToolTips\\Human\\human-tooltip-background.blp"):LBsetText("测试按钮"):CLICK(function()
    echo("123")
end)
UiHelper.backdrop():dfpointp(0.3,0,hdzui.origin.game(),FRAME_ALIGN_CENTER,FRAME_ALIGN_CENTER):dfsize(0.1,0.1)
UiHelper.backdrop():dfpointp(0.3,0.2,hdzui.origin.game(),FRAME_ALIGN_CENTER,FRAME_ALIGN_CENTER):dfsize(0.1,0.1):backdropGif(9,"hLua\\cd\\")